//package com.hc.test;
//
//import com.hc.QcApplication;
//import com.hc.handle.JsonUtil;
//import com.hc.handle.MqttGateway;
//import com.hc.model.PushPayload;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.SpringRunner;
//
//
///**
// * @author LiuZhiHao
// * @date 2019/10/9 16:05
// * 描述:
// **/
//@RunWith(SpringRunner.class)
//@SpringBootTest(classes = {QcApplication.class})
//public class testmqtt {
//    @Autowired
//    private MqttGateway mqttGateway;
//
//    @Test
//    public void  test1(){
//        PushPayload pushMessage = PushPayload.getPushPayloadBuider().setMobile("54415154")
//                .setContent("瓜皮熊仔")
//                .bulid();
//        mqttGateway.sendToMqtt(JsonUtil.toJson(pushMessage),"ForTest");
//    }
//}
